package ast;

public class CallVarNode extends ExprNode {

	public String id;
	public String dot;

    public CallVarNode(String id, ActualParamList right) {
    	this.left = null;
    	this.right = right;
    	this.id = id;
    	this.dot = "";
    }

    public CallVarNode(String id, VarNode left, ActualParamList right) {
    	this.left = left;
    	this.right = right;
    	this.id = id;
    	this.dot = ".";
    }

    public Object accept(Visitor v) {
    	return v.visit(this);
    }

}